package com.sap.helloandroid;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class HelloAndroidActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		Button showMessage = (Button) this
				.findViewById(R.id.Button_ShowMessage);

		showMessage.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(HelloAndroidActivity.this,
						R.string.user_message, Toast.LENGTH_LONG).show();

			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
}
